home *** CD-ROM | disk | FTP | other *** search
-
- /*
- InvisiLayer FKey #0 -- Version 1.00 -- Sep 15, 1989
-
- Copyright (c) 1989 by Neal E. Trautman
-
- 'ShareWare' -- Please send $3 contribution to:
- Neal Trautman
- 1701 S.W. 42nd Street
- Fargo, ND 58103
-
- This FKey makes the content region of all windows transparent.
- (If the front window is already transparent, the content regions return)
- */
-
- main()
- {
- register WindowPeek win;
- register RgnHandle oldContent;
-
- win = (WindowPeek)FrontWindow();
- while (win)
- {
- if (win->visible)
- {
- oldContent = win->contRgn;
- if (EmptyRgn(oldContent))
- {
- ShowHide(win,FALSE);
- ShowHide(win,TRUE);
- }
- else
- {
- win->contRgn = NewRgn();
- DiffRgn(win->strucRgn,oldContent,win->strucRgn);
- CalcVisBehind(win,oldContent);
- PaintBehind(win,oldContent);
- DisposeRgn(oldContent);
- }
- }
- win = win->nextWindow;
- }
- }
-